package cn.sciento.swagger.config;


import cn.sciento.common.STongService;
import cn.sciento.core.swagger.ChoerodonRouteData;
import cn.sciento.swagger.annotation.ChoerodonExtraData;
import cn.sciento.swagger.swagger.extra.ExtraData;
import cn.sciento.swagger.swagger.extra.ExtraDataManager;


@ChoerodonExtraData
public class SwaggerExtraDataManager implements ExtraDataManager {

    @Override
    public ExtraData getData() {
        ChoerodonRouteData choerodonRouteData = new ChoerodonRouteData();
        choerodonRouteData.setName(STongService.Swagger.CODE);
        choerodonRouteData.setPath(STongService.Swagger.PATH);
        choerodonRouteData.setServiceId(STongService.Swagger.NAME);
        choerodonRouteData.setPackages("cn.sciento.swagger");
        extraData.put(ExtraData.ZUUL_ROUTE_DATA, choerodonRouteData);
        return extraData;
    }
}
